/// code : "1"
/// msg : "成功"
/// data : []

/// 基础类封装
class BaseModel {
  BaseModel({
    String? code,
    String? msg,
    dynamic? data,
  }) {
    _code = code;
    _msg = msg;
    _data = data;
  }

  BaseModel.fromJson(dynamic json) {
    _code = json['code'];
    _msg = json['msg'];
    _data = json['data'];
  }

  String? _code;
  String? _msg;
  dynamic? _data;

  String? get code => _code;

  String? get msg => _msg;

  dynamic? get data => _data;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = _code;
    map['msg'] = _msg;
    map['data'] = _data;
    return map;
  }
}
